package com.acme.task1;

import java.util.Scanner;

public class Calculator {
	 
	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 System.out.println("Vvedite pervoye chislo");
	     String operand1 = scan.nextLine();
	     int chislo1=Integer.parseInt(operand1);
	     System.out.println("Vvedite operator");
		 String operation = scan.nextLine();
		 System.out.println("Vvedite vtoroye chislo");
		 String operand2 = scan.nextLine();
		 int chislo2=Integer.parseInt(operand2);
		 
		 double op1 = chislo1 + chislo2;
		 double op2 = chislo1 - chislo2;
		 double op3 = chislo1 * chislo2;
		 double op4 = chislo1 / chislo2;

	switch (operation) {
    case "+":System.out.println(chislo1+" + "+chislo2+" = "+op1);
             break;
    case "-":System.out.println(chislo1+" - "+chislo2+" = "+op2);
             break;
    case "*":System.out.println(chislo1+" * "+chislo2+" = "+op3);
             break;
    case "/":System.out.println(chislo1+" / "+chislo2+" = "+op4);
             break;
    default: System.out.println("Invalid operation");
             break;
}
		
	}
}
